<?php
/**
 * Object.class.php
 *
 * PHP version 5.3
 *
 * @author		Leo Valen <leo@valen.pro>
 */
/**
 * Base class for TeamPlayers objects
 *
 * @version		1.0
 */
namespace TeamPlayers;
abstract class Object
{
	/**
	 * Universally unique identifier for this object
	 *
	 * @var string
	 * @access protected
	 */
	protected $uuid;
	/**
	 * Constructor
	 *
	 * Sets the specified UUID or creates a new UUID if none is supplied
	 *
	 * @param       string $uuid
	 * @return		void
	 * @access		public
	 */
	function __construct( $uuid = false )
	{
		if ( $uuid !== false )
		{
		    $this->uuid = $uuid;
		}
		else
		{
		    $this->uuid = TeamPlayers::uuid();
		}
	}
	/**
	 * Returns the universally unique identifier for this object
	 *
	 * @param       string $uuid
	 * @return		string
	 * @access		public
	 */
	public function getUuid()
	{
		return $this->uuid;
	}
	
}
?>
